GNU Radio's FUNCUBE Package
fcdpp_control_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2020 dl1ksv.
4 *
5 * SPDX-License-Identifier: GPL-3.0-or-later
6 */
7
8#ifndef INCLUDED_FUNCUBE_FCDPP_CONTROL_IMPL_H
9#define INCLUDED_FUNCUBE_FCDPP_CONTROL_IMPL_H
10
11#include "hidapi/hidapi.h"
13
14namespace gr {
15namespace funcube {
16
18{
19private:
20 hid_device* d_control_handle; /*!< handle to control the device, set frequency, etc */
21 unsigned char aucBuf[65]; /*!< Buffers to read/write control messages to the dongle */
22
23public:
26
27 /* Public API functions documented in include/funcube/fcdpp_control.h */
28 void set_freq(double freq) override;
29 void set_lna(int gain) override;
30 void set_mixer_gain(int gain) override;
31 void set_if_gain(int gain);
32 void set_frequency_msg(pmt::pmt_t msg);
33};
34
35} // namespace funcube
36} // namespace gr
37
38#endif /* INCLUDED_FUNCUBE_FCDPP_CONTROL_IMPL_H */
#define FUNCUBE_API
Definition api.h:19
void set_frequency_msg(pmt::pmt_t msg)
void set_if_gain(int gain)
Set If gain.
void set_lna(int gain) override
Switches the LNA on/off.
void set_freq(double freq) override
Sets the frequency .
void set_mixer_gain(int gain) override
Switches mixer gain onf/off.
<+description of block+>
Definition fcdpp_control.h:23
Definition fcd.h:15
Definition fcd.h:14